package com.tyao.note.model;

import java.util.Date;

/**
 *   
 *
 *
 * @mbg.generated do_not_delete_during_merge Fri Jul 13 16:24:30 CST 2018
 */
public class BNote {
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 标签id
     */
    private Integer tagId;

    /**
     * 标题
     */
    private String title;

    /**
     * 正文内容
     */
    private String content;
    /**
     * 关键词
     */
    private String keywords;
    /**
     * 文章摘要
     */
    private String articleAbstract;
    /**
     * 笔记属性:公开、私有
     */
    private Integer noteState;
    /**
     * 浏览次数
     */
    private Integer viewsCount;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifiedTime;
    /**
     * 分类对象
     */
    private BTag tag;
    /**
     * 用户对象
     */
    private TSUser tsUser;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_note.id
     *
     * @return the value of b_note.id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_note.id
     *
     * @param id the value for b_note.id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_note.user_id
     *
     * @return the value of b_note.user_id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_note.user_id
     *
     * @param userId the value for b_note.user_id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_note.tag_id
     *
     * @return the value of b_note.tag_id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public Integer getTagId() {
        return tagId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_note.tag_id
     *
     * @param tagId the value for b_note.tag_id
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_note.title
     *
     * @return the value of b_note.title
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_note.title
     *
     * @param title the value for b_note.title
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_note.content
     *
     * @return the value of b_note.content
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public String getContent() {
        return content;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_note.content
     *
     * @param content the value for b_note.content
     *
     * @mbg.generated Fri Jul 13 16:24:30 CST 2018
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}
	
	

	public String getArticleAbstract() {
		return articleAbstract;
	}

	public void setArticleAbstract(String articleAbstract) {
		this.articleAbstract = articleAbstract;
	}
	
	public BTag getTag() {
		return tag;
	}

	public void setTag(BTag tag) {
		this.tag = tag;
	}

	public TSUser getTsUser() {
		return tsUser;
	}

	public void setTsUser(TSUser tsUser) {
		this.tsUser = tsUser;
	}

	public Integer getNoteState() {
		return noteState;
	}

	public void setNoteState(Integer noteState) {
		this.noteState = noteState;
	}

	public Integer getViewsCount() {
		return viewsCount;
	}

	public void setViewsCount(Integer viewsCount) {
		this.viewsCount = viewsCount;
	}

	@Override
	public String toString() {
		return "BNote [id=" + id + ", userId=" + userId + ", tagId=" + tagId + ", title=" + title + ", content="
				+ content + ", keywords=" + keywords + ", articleAbstract=" + articleAbstract + ", noteState="
				+ noteState + ", viewsCount=" + viewsCount + ", createTime=" + createTime + ", modifiedTime="
				+ modifiedTime + ", tag=" + tag + ", tsUser=" + tsUser + "]";
	}

	

}